<%@ Page Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="EditPosts.aspx.cs" Inherits="admin_EditPosts" Title="Edit Posts" validateRequest="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="LinkPlaceHolder" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table style="margin:10px">
    <tr>
    <td valign="top">
        Post Edit<br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="id"
            DataSourceID="ObjectDataSource1" AllowPaging="True" AllowSorting="True" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
            <Columns>
                <asp:CommandField ShowSelectButton="True" />
                <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True"
                    SortExpression="id" />
                <asp:BoundField DataField="filename" HeaderText="file" SortExpression="filename" />
                <asp:BoundField DataField="post_date" HeaderText="post datetime" SortExpression="post_date" />
                <asp:BoundField DataField="post_title" HeaderText="title" SortExpression="post_title" />
                <asp:BoundField DataField="post_is_publish" HeaderText="publish" SortExpression="post_is_publish" />
                <asp:BoundField DataField="comment_is_open" HeaderText="c-open" SortExpression="comment_is_open" />
                <asp:BoundField DataField="exif_corp" HeaderText="corp" SortExpression="exif_corp" />
                <asp:BoundField DataField="exif_date" HeaderText="exif_date" SortExpression="exif_date" />
            </Columns>
        </asp:GridView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="Delete"
            InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetPostForEdit"
            TypeName="dst_pbTableAdapters.pb_postTableAdapter" UpdateMethod="Update">
            <DeleteParameters>
                <asp:Parameter Name="Original_id" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="filename" Type="String" />
                <asp:Parameter Name="post_date" Type="DateTime" />
                <asp:Parameter Name="post_title" Type="String" />
                <asp:Parameter Name="post_content" Type="String" />
                <asp:Parameter Name="post_is_publish" Type="Int16" />
                <asp:Parameter Name="comment_is_open" Type="Int16" />
                <asp:Parameter Name="exif_date" Type="DateTime" />
                <asp:Parameter Name="exif_camera" Type="String" />
                <asp:Parameter Name="exif_lens" Type="Int32" />
                <asp:Parameter Name="exif_focallength" Type="Int16" />
                <asp:Parameter Name="exif_aperture" Type="String" />
                <asp:Parameter Name="exif_shutterspeed" Type="String" />
                <asp:Parameter Name="exif_shootingmode" Type="String" />
                <asp:Parameter Name="exif_meteringmode" Type="String" />
                <asp:Parameter Name="exif_iso" Type="String" />
                <asp:Parameter Name="exif_is_flash" Type="String" />
                <asp:Parameter Name="exif_corp" Type="String" />
                <asp:Parameter Name="exif_software" Type="String" />
                <asp:Parameter Name="Original_id" Type="Int32" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="filename" Type="String" />
                <asp:Parameter Name="post_date" Type="DateTime" />
                <asp:Parameter Name="post_title" Type="String" />
                <asp:Parameter Name="post_content" Type="String" />
                <asp:Parameter Name="post_is_publish" Type="Int16" />
                <asp:Parameter Name="comment_is_open" Type="Int16" />
                <asp:Parameter Name="exif_date" Type="DateTime" />
                <asp:Parameter Name="exif_camera" Type="String" />
                <asp:Parameter Name="exif_lens" Type="Int32" />
                <asp:Parameter Name="exif_focallength" Type="Int16" />
                <asp:Parameter Name="exif_aperture" Type="String" />
                <asp:Parameter Name="exif_shutterspeed" Type="String" />
                <asp:Parameter Name="exif_shootingmode" Type="String" />
                <asp:Parameter Name="exif_meteringmode" Type="String" />
                <asp:Parameter Name="exif_iso" Type="String" />
                <asp:Parameter Name="exif_is_flash" Type="String" />
                <asp:Parameter Name="exif_corp" Type="String" />
                <asp:Parameter Name="exif_software" Type="String" />
            </InsertParameters>
        </asp:ObjectDataSource>
        &nbsp;<br />
    </td>
    <td valign="top">
        Post Detail<br />
        <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="300px" AutoGenerateRows="False" DataKeyNames="id" DataSourceID="ObjectDataSource3">
            <Fields>
                <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True"
                    SortExpression="id" />
                <asp:BoundField DataField="filename" HeaderText="filename" SortExpression="filename" />
                <asp:BoundField DataField="post_date" HeaderText="post_date" SortExpression="post_date" />
                <asp:BoundField DataField="post_title" HeaderText="post_title" SortExpression="post_title" />
                <asp:TemplateField HeaderText="Content">
                    <ItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" BorderStyle="Groove" CssClass="textarea"
                            Height="113px" Text='<%# Bind("post_content", "{0}") %>' TextMode="MultiLine"
                            Width="173px"></asp:TextBox>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="post_is_publish" HeaderText="post_is_publish" SortExpression="post_is_publish" />
                <asp:BoundField DataField="comment_is_open" HeaderText="comment_is_open" SortExpression="comment_is_open" />
                <asp:BoundField DataField="exif_date" HeaderText="exif_date" SortExpression="exif_date" />
                <asp:BoundField DataField="exif_camera" HeaderText="exif_camera" SortExpression="exif_camera" />
                <asp:BoundField DataField="exif_lens" HeaderText="exif_lens" SortExpression="exif_lens" />
                <asp:BoundField DataField="exif_focallength" HeaderText="exif_focallength" SortExpression="exif_focallength" />
                <asp:BoundField DataField="exif_aperture" HeaderText="exif_aperture" SortExpression="exif_aperture" />
                <asp:BoundField DataField="exif_shutterspeed" HeaderText="exif_shutterspeed" SortExpression="exif_shutterspeed" />
                <asp:BoundField DataField="exif_shootingmode" HeaderText="exif_shootingmode" SortExpression="exif_shootingmode" />
                <asp:BoundField DataField="exif_meteringmode" HeaderText="exif_meteringmode" SortExpression="exif_meteringmode" />
                <asp:BoundField DataField="exif_iso" HeaderText="exif_iso" SortExpression="exif_iso" />
                <asp:BoundField DataField="exif_is_flash" HeaderText="exif_is_flash" SortExpression="exif_is_flash" />
                <asp:BoundField DataField="exif_corp" HeaderText="exif_corp" SortExpression="exif_corp" />
                <asp:BoundField DataField="exif_software" HeaderText="exif_software" SortExpression="exif_software" />
                <asp:CommandField ShowEditButton="True" />
            </Fields>
        </asp:DetailsView>
        <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" DeleteMethod="Delete"
            InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetPostById"
            TypeName="dst_pbTableAdapters.pb_postTableAdapter" UpdateMethod="Update">
            <DeleteParameters>
                <asp:Parameter Name="Original_id" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="filename" Type="String" />
                <asp:Parameter Name="post_date" Type="DateTime" />
                <asp:Parameter Name="post_title" Type="String" />
                <asp:Parameter Name="post_content" Type="String" />
                <asp:Parameter Name="post_is_publish" Type="Int16" />
                <asp:Parameter Name="comment_is_open" Type="Int16" />
                <asp:Parameter Name="exif_date" Type="DateTime" />
                <asp:Parameter Name="exif_camera" Type="String" />
                <asp:Parameter Name="exif_lens" Type="Int32" />
                <asp:Parameter Name="exif_focallength" Type="Int16" />
                <asp:Parameter Name="exif_aperture" Type="String" />
                <asp:Parameter Name="exif_shutterspeed" Type="String" />
                <asp:Parameter Name="exif_shootingmode" Type="String" />
                <asp:Parameter Name="exif_meteringmode" Type="String" />
                <asp:Parameter Name="exif_iso" Type="String" />
                <asp:Parameter Name="exif_is_flash" Type="String" />
                <asp:Parameter Name="exif_corp" Type="String" />
                <asp:Parameter Name="exif_software" Type="String" />
                <asp:Parameter Name="Original_id" Type="Int32" />
            </UpdateParameters>
            <SelectParameters>
                <asp:ControlParameter ControlID="GridView1" DefaultValue="-1" Name="id" PropertyName="SelectedValue"
                    Type="Int32" />
            </SelectParameters>
            <InsertParameters>
                <asp:Parameter Name="filename" Type="String" />
                <asp:Parameter Name="post_date" Type="DateTime" />
                <asp:Parameter Name="post_title" Type="String" />
                <asp:Parameter Name="post_content" Type="String" />
                <asp:Parameter Name="post_is_publish" Type="Int16" />
                <asp:Parameter Name="comment_is_open" Type="Int16" />
                <asp:Parameter Name="exif_date" Type="DateTime" />
                <asp:Parameter Name="exif_camera" Type="String" />
                <asp:Parameter Name="exif_lens" Type="Int32" />
                <asp:Parameter Name="exif_focallength" Type="Int16" />
                <asp:Parameter Name="exif_aperture" Type="String" />
                <asp:Parameter Name="exif_shutterspeed" Type="String" />
                <asp:Parameter Name="exif_shootingmode" Type="String" />
                <asp:Parameter Name="exif_meteringmode" Type="String" />
                <asp:Parameter Name="exif_iso" Type="String" />
                <asp:Parameter Name="exif_is_flash" Type="String" />
                <asp:Parameter Name="exif_corp" Type="String" />
                <asp:Parameter Name="exif_software" Type="String" />
            </InsertParameters>
        </asp:ObjectDataSource>
    </td>
    </tr>
    <tr>
    <td valign="top">
        Post Category&nbsp;
        <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectDataSource5">
            <Columns>
                <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" SortExpression="id" />
                <asp:BoundField DataField="post_id" HeaderText="post_id" SortExpression="post_id" />
                <asp:BoundField DataField="cat_id" HeaderText="cat_id" SortExpression="cat_id" />
                <asp:BoundField DataField="cat_name" HeaderText="cat_name" SortExpression="cat_name" />
            </Columns>
        </asp:GridView>
        <asp:ObjectDataSource ID="ObjectDataSource5" runat="server" DeleteMethod="DeleteQuery"
            OldValuesParameterFormatString="original_{0}" SelectMethod="GetPost2CatDataByPostId"
            TypeName="dst_pbTableAdapters.pb_post2cat2TableAdapter">
            <DeleteParameters>
                <asp:Parameter Name="Param1" Type="Int32" />
            </DeleteParameters>
            <SelectParameters>
                <asp:ControlParameter ControlID="GridView1" DefaultValue="-1" Name="post_id" PropertyName="SelectedValue"
                    Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </td>
    <td valign="top">
    </td></tr>
    <tr>
    <td valign="top">
        CommentEdit<br />
        &nbsp;<asp:ObjectDataSource ID="ObjectDataSource2" runat="server" DeleteMethod="Delete"
            InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetAllCommentsData"
            TypeName="dst_pbTableAdapters.pb_commentTableAdapter" UpdateMethod="Update">
            <DeleteParameters>
                <asp:Parameter Name="Original_id" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="post_id" Type="Int32" />
                <asp:Parameter Name="comment_author" Type="String" />
                <asp:Parameter Name="comment_author_email" Type="String" />
                <asp:Parameter Name="comment_author_url" Type="String" />
                <asp:Parameter Name="comment_author_ip" Type="String" />
                <asp:Parameter Name="comment_date" Type="DateTime" />
                <asp:Parameter Name="comment_content" Type="String" />
                <asp:Parameter Name="comment_is_approved" Type="Int16" />
                <asp:Parameter Name="is_request_email" Type="Int16" />
                <asp:Parameter Name="Original_id" Type="Int32" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="post_id" Type="Int32" />
                <asp:Parameter Name="comment_author" Type="String" />
                <asp:Parameter Name="comment_author_email" Type="String" />
                <asp:Parameter Name="comment_author_url" Type="String" />
                <asp:Parameter Name="comment_author_ip" Type="String" />
                <asp:Parameter Name="comment_date" Type="DateTime" />
                <asp:Parameter Name="comment_content" Type="String" />
                <asp:Parameter Name="comment_is_approved" Type="Int16" />
                <asp:Parameter Name="is_request_email" Type="Int16" />
            </InsertParameters>
        </asp:ObjectDataSource>
        <asp:Panel ID="Panel1" runat="server" Visible="true">
            <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="ObjectDataSource2" AllowPaging="True">
                <Columns>
                    <asp:CommandField ShowSelectButton="True" />
                    <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True"
                    SortExpression="id" />
                    <asp:BoundField DataField="post_id" HeaderText="p-id" SortExpression="post_id" />
                    <asp:BoundField DataField="comment_author" HeaderText="author" SortExpression="comment_author" />
                    <asp:BoundField DataField="comment_author_email" HeaderText="email"
                    SortExpression="comment_author_email" />
                    <asp:BoundField DataField="comment_author_url" HeaderText="url" SortExpression="comment_author_url" />
                    <asp:BoundField DataField="comment_author_ip" HeaderText="ip" SortExpression="comment_author_ip" />
                    <asp:BoundField DataField="comment_date" HeaderText="date" SortExpression="comment_date" />
                    <asp:BoundField DataField="comment_is_approved" HeaderText="approved"
                    SortExpression="comment_is_approved" />
                    <asp:BoundField DataField="is_request_email" HeaderText="req_email" SortExpression="is_request_email" />
                </Columns>
            </asp:GridView>
        </asp:Panel>
        
        <asp:Panel ID="Panel3" runat="server" Visible="false">
        <asp:GridView ID="GridView4" runat="server" AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="ObjectDataSource6" AllowPaging="True">
                <Columns>
                    <asp:CommandField ShowSelectButton="True" />
                    <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True"
                    SortExpression="id" />
                    <asp:BoundField DataField="post_id" HeaderText="p-id" SortExpression="post_id" />
                    <asp:BoundField DataField="comment_author" HeaderText="author" SortExpression="comment_author" />
                    <asp:BoundField DataField="comment_author_email" HeaderText="email"
                    SortExpression="comment_author_email" />
                    <asp:BoundField DataField="comment_author_url" HeaderText="url" SortExpression="comment_author_url" />
                    <asp:BoundField DataField="comment_author_ip" HeaderText="ip" SortExpression="comment_author_ip" />
                    <asp:BoundField DataField="comment_date" HeaderText="date" SortExpression="comment_date" />
                    <asp:BoundField DataField="comment_is_approved" HeaderText="approved"
                    SortExpression="comment_is_approved" />
                    <asp:BoundField DataField="is_request_email" HeaderText="req_email" SortExpression="is_request_email" />
                </Columns>
            </asp:GridView>
            <asp:ObjectDataSource ID="ObjectDataSource6" runat="server" DeleteMethod="Delete"
                InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetAllCommentByPostId"
                TypeName="dst_pbTableAdapters.pb_commentTableAdapter" UpdateMethod="Update">
                <DeleteParameters>
                    <asp:Parameter Name="Original_id" Type="Int32" />
                </DeleteParameters>
                <UpdateParameters>
                    <asp:Parameter Name="post_id" Type="Int32" />
                    <asp:Parameter Name="comment_author" Type="String" />
                    <asp:Parameter Name="comment_author_email" Type="String" />
                    <asp:Parameter Name="comment_author_url" Type="String" />
                    <asp:Parameter Name="comment_author_ip" Type="String" />
                    <asp:Parameter Name="comment_date" Type="DateTime" />
                    <asp:Parameter Name="comment_content" Type="String" />
                    <asp:Parameter Name="comment_is_approved" Type="Int16" />
                    <asp:Parameter Name="is_request_email" Type="Int16" />
                    <asp:Parameter Name="Original_id" Type="Int32" />
                </UpdateParameters>
                <SelectParameters>
                    <asp:ControlParameter ControlID="GridView1" Name="post_id" PropertyName="SelectedValue"
                        Type="Int32" />
                </SelectParameters>
                <InsertParameters>
                    <asp:Parameter Name="post_id" Type="Int32" />
                    <asp:Parameter Name="comment_author" Type="String" />
                    <asp:Parameter Name="comment_author_email" Type="String" />
                    <asp:Parameter Name="comment_author_url" Type="String" />
                    <asp:Parameter Name="comment_author_ip" Type="String" />
                    <asp:Parameter Name="comment_date" Type="DateTime" />
                    <asp:Parameter Name="comment_content" Type="String" />
                    <asp:Parameter Name="comment_is_approved" Type="Int16" />
                    <asp:Parameter Name="is_request_email" Type="Int16" />
                </InsertParameters>
            </asp:ObjectDataSource>
        </asp:Panel>
        
        
    </td>
    <td valign="top">
    
    Comment Detail<br />
        <asp:Panel ID="Panel2" runat="server" Visible="true">
        <asp:DetailsView ID="DetailsView2" runat="server" AutoGenerateRows="False" DataKeyNames="id"
            DataSourceID="ObjectDataSource4" Height="50px" Width="300px">
            <Fields>
                <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True"
                    SortExpression="id" />
                <asp:BoundField DataField="post_id" HeaderText="post_id" SortExpression="post_id" />
                <asp:BoundField DataField="comment_author" HeaderText="author" SortExpression="comment_author" />
                <asp:BoundField DataField="comment_author_email" HeaderText="email" SortExpression="comment_author_email" />
                <asp:BoundField DataField="comment_author_url" HeaderText="url" SortExpression="comment_author_url" />
                <asp:BoundField DataField="comment_author_ip" HeaderText="ip" SortExpression="comment_author_ip" />
                <asp:BoundField DataField="comment_date" HeaderText="date" SortExpression="comment_date" />
                <asp:TemplateField HeaderText="content">
                    <ItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server" BorderStyle="Groove" CssClass="textarea"
                            Height="102px" Text='<%# Bind("comment_content", "{0}") %>' TextMode="MultiLine"
                            Width="204px"></asp:TextBox>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="comment_is_approved" HeaderText="approved" SortExpression="comment_is_approved" />
                <asp:BoundField DataField="is_request_email" HeaderText="email" SortExpression="is_request_email" />
                <asp:CommandField ShowEditButton="True" />
            </Fields>
        </asp:DetailsView>
        <asp:ObjectDataSource ID="ObjectDataSource4" runat="server" DeleteMethod="Delete"
            InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetCommentByCommentId"
            TypeName="dst_pbTableAdapters.pb_commentTableAdapter" UpdateMethod="Update">
            <DeleteParameters>
                <asp:Parameter Name="Original_id" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="post_id" Type="Int32" />
                <asp:Parameter Name="comment_author" Type="String" />
                <asp:Parameter Name="comment_author_email" Type="String" />
                <asp:Parameter Name="comment_author_url" Type="String" />
                <asp:Parameter Name="comment_author_ip" Type="String" />
                <asp:Parameter Name="comment_date" Type="DateTime" />
                <asp:Parameter Name="comment_content" Type="String" />
                <asp:Parameter Name="comment_is_approved" Type="Int16" />
                <asp:Parameter Name="is_request_email" Type="Int16" />
                <asp:Parameter Name="Original_id" Type="Int32" />
            </UpdateParameters>
            <SelectParameters>
                <asp:ControlParameter ControlID="GridView2" DefaultValue="-1" Name="id" PropertyName="SelectedValue"
                    Type="Int32" />
            </SelectParameters>
            <InsertParameters>
                <asp:Parameter Name="post_id" Type="Int32" />
                <asp:Parameter Name="comment_author" Type="String" />
                <asp:Parameter Name="comment_author_email" Type="String" />
                <asp:Parameter Name="comment_author_url" Type="String" />
                <asp:Parameter Name="comment_author_ip" Type="String" />
                <asp:Parameter Name="comment_date" Type="DateTime" />
                <asp:Parameter Name="comment_content" Type="String" />
                <asp:Parameter Name="comment_is_approved" Type="Int16" />
                <asp:Parameter Name="is_request_email" Type="Int16" />
            </InsertParameters>
        </asp:ObjectDataSource>
        </asp:Panel>
            
            
        <asp:Panel ID="Panel4" runat="server" Visible="false">
        <asp:DetailsView ID="DetailsView3" runat="server" AutoGenerateRows="False" DataKeyNames="id"
            DataSourceID="ObjectDataSource7" Height="50px" Width="125px">
            <Fields>
                <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True"
                    SortExpression="id" />
                <asp:BoundField DataField="post_id" HeaderText="post_id" SortExpression="post_id" />
                <asp:BoundField DataField="comment_author" HeaderText="comment_author" SortExpression="comment_author" />
                <asp:BoundField DataField="comment_author_email" HeaderText="comment_author_email"
                    SortExpression="comment_author_email" />
                <asp:BoundField DataField="comment_author_url" HeaderText="comment_author_url" SortExpression="comment_author_url" />
                <asp:BoundField DataField="comment_author_ip" HeaderText="comment_author_ip" SortExpression="comment_author_ip" />
                <asp:BoundField DataField="comment_date" HeaderText="comment_date" SortExpression="comment_date" />
                <asp:BoundField DataField="comment_content" HeaderText="comment_content" SortExpression="comment_content" />
                <asp:BoundField DataField="comment_is_approved" HeaderText="comment_is_approved"
                    SortExpression="comment_is_approved" />
                <asp:BoundField DataField="is_request_email" HeaderText="is_request_email" SortExpression="is_request_email" />
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
            </Fields>
        </asp:DetailsView>
        <asp:ObjectDataSource ID="ObjectDataSource7" runat="server" DeleteMethod="Delete"
            InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetCommentByCommentId"
            TypeName="dst_pbTableAdapters.pb_commentTableAdapter" UpdateMethod="Update">
            <DeleteParameters>
                <asp:Parameter Name="Original_id" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="post_id" Type="Int32" />
                <asp:Parameter Name="comment_author" Type="String" />
                <asp:Parameter Name="comment_author_email" Type="String" />
                <asp:Parameter Name="comment_author_url" Type="String" />
                <asp:Parameter Name="comment_author_ip" Type="String" />
                <asp:Parameter Name="comment_date" Type="DateTime" />
                <asp:Parameter Name="comment_content" Type="String" />
                <asp:Parameter Name="comment_is_approved" Type="Int16" />
                <asp:Parameter Name="is_request_email" Type="Int16" />
                <asp:Parameter Name="Original_id" Type="Int32" />
            </UpdateParameters>
            <SelectParameters>
                <asp:ControlParameter ControlID="GridView4" Name="id" PropertyName="SelectedValue"
                    Type="Int32" />
            </SelectParameters>
            <InsertParameters>
                <asp:Parameter Name="post_id" Type="Int32" />
                <asp:Parameter Name="comment_author" Type="String" />
                <asp:Parameter Name="comment_author_email" Type="String" />
                <asp:Parameter Name="comment_author_url" Type="String" />
                <asp:Parameter Name="comment_author_ip" Type="String" />
                <asp:Parameter Name="comment_date" Type="DateTime" />
                <asp:Parameter Name="comment_content" Type="String" />
                <asp:Parameter Name="comment_is_approved" Type="Int16" />
                <asp:Parameter Name="is_request_email" Type="Int16" />
            </InsertParameters>
        </asp:ObjectDataSource>
        </asp:Panel>
       
    </td>
    </tr>
</table>
<br /><br /><br /><br />
</asp:Content>
